package edu.mse.camel.client.core.events.model;

import java.io.Serializable;
import java.util.Date;

import edu.mse.camel.client.events.AbstractEvent;
import edu.mse.camel.client.events.EventIDs;

public class ModelUpdateEvent2 extends AbstractEvent implements Serializable {

	public ModelUpdateEvent2(KIND kind) {
		this.kind = kind;
	}
	
	public ModelUpdateEvent2() {
	}
	
	private static final long serialVersionUID = -3918519421921853682L;

	public enum KIND {UNDEFINED, UML, WB};
	
	private KIND kind = KIND.UNDEFINED;
	
	private boolean tokenValid = false;
	private int tokenID = -1;
	private int serialNumber = -1;
	private String cmdName;
	
	public KIND getKind() {
		return kind;
	}

	@Override
	public String getEventID() {
		return EventIDs.MODEL_UPDATE_EVENT2;
	}
	
	private byte[] byteArray;
	
	public byte[] getByteArray() {
		return byteArray;
	}

	public void setByteArray(byte[] byteArray) {
		this.byteArray = byteArray;
	}

	public void setTokenID(int tokenID) {
		this.tokenID = tokenID;
	}

	public int getTokenID() {
		return tokenID;
	}

	public void setSerialNumber(int serialNumber) {
		this.serialNumber = serialNumber;
	}

	public int getSerialNumber() {
		return serialNumber;
	}

	public void setTokenValid(boolean tokenValid) {
		this.tokenValid = tokenValid;
	}

	public boolean isTokenValid() {
		return tokenValid;
	}

	public void setCmdName(String cmdName) {
		this.cmdName = cmdName;
	}

	public String getCmdName() {
		return cmdName;
	}

}
